home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
internet
/
vbsock11
/
chat
/
server
/
get_ini.bas
next >
Wrap
BASIC Source File
|
1994-10-06
|
595b
|
23 lines
Global iniFileName As String
Function GetIniData (iniSection As String, iniParam As String) As String
Dim datastring As String * 1024
datastring = Space$(1024)
amount = GetPrivateProfileString(iniSection, iniParam, " ", datastring, 1024, iniFileName)
If amount = 0 Then
GetIniData = ""
Else
GetIniData = RTrim$(datastring)
End If
End Function
Function PutIniData (iniSection As String, iniParam As String, theData As String)
PutIniData = WritePrivateProfileString(iniSection, iniParam, theData, iniFileName)
End Function